import java.util.Scanner;

/**
 * @Author Stringzhua
 * @Date 2024/2/1 15:20
 * description:
 */
public class DoWhileExercise02 {
    public static void main(String[] args) {
        //如果李四不还钱,则老韩一直使出闪电五连鞭,直到李四还钱为止
        //do...while实现
        Scanner myScanner = new Scanner(System.in);
        char answer = ' ';
        do {
            System.out.println("老韩使出闪电五连鞭~");
            System.out.println("老韩问:还钱嘛?y/n");
            answer = myScanner.next().charAt(0);
            System.out.println("李四的回答是" + answer);
        } while (answer != 'y');
        System.out.println("李四还钱了");
    }
}
